package pqt9_ApiColletions;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class EjemploConMap {

	protected EjemploConMap(){
		Map map=new HashMap();
		map.put(1,1);
		map.put(2, 2);
		map.put(3, new Integer(3));
		map.put(4,"cuatro");
		map.put(4,4);
		Set setKeys=map.keySet();
		Set setMap=map.entrySet();
		Collection collection=map.values();
		System.out.println("Keys->"+setKeys);
		System.out.println("Keys y values="+setMap);
		System.out.println("Values->"+collection);
	}
}
